package com.common.web.event;

import org.springframework.context.ApplicationEvent;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 获取数据集合命令
 */
@Data
@EqualsAndHashCode(callSuper=false)
public class SetDataEvent<T> extends ApplicationEvent {

	private static final long serialVersionUID = 1L;
	
	private String plcName;
	
	private String command;
	
	private String address;
	
	private Class<T> type;
	
	private T value;
	
	public SetDataEvent(String plcName,String command,String address,Class<T> type,T value) {
		super(address);
		this.plcName = plcName;
		this.command = command;
		this.address=address;
		this.type = type;
		this.value = value;
	}
}
